Skip to main content

EMI CAL v3

Seamless EMI CALCULATOR CARDLESS Integration

Introduction

1. Overview

This document explains how to integrate the EMI calculator in your application, and which bring both Cardless and Card data details in single API call.

2. Implementation Details

It helps in fetching offers for single/multiple products for both CARD and CARDLESS schemes. Here we need to use the api version of V3 to get both data in single call.

UAT - https://uat.pinepg.in/api/v3/emi/calculator

PRODUCTION - https://pinepg.in/api/v3/emi/calculator

Body Params:

Parameter NameTypeDescriptionMandatory(M)/Optional
merchant_dataobjectIt contains information about merchant.M
payment_dataobjectIt contains information about payment data.M
product_detailsArray of objectsIt contains information about products present in cart.M

merchant_data:

Parameter NameTypeDescriptionMandatory(M)/Optional
merchant_idintMerchant id provided by pine labs.M
merchant_access_codestringMerchant access code provided by pine labs.M

payment_data:

Parameter NameTypeDescriptionMandatory(M)/Optional
amount_in_paisalongTotal sum of products amount present in cart.M

product_details:

Parameter NameTypeDescriptionMandatory(M)/Optional
product_codestringProduct code present at merchant end.M
product_amountlongProduct amount in paise.M

Body Params:

Parameter NameTypeDescription
issuerArray of objectsIt contains information about issuing bank EMI details.
response_codeintIt notifies the result of api processing. Value 1 denotes success.
response_messagestringIt denotes the message corresponding to above code.

Parameter abbreviation:

issuer:

Parameter NameTypeDescription
list_emi_tenureArray of objectsIt contains information about tenures for each issuer.
issuer_nameStringBank Name.
is_debit_emi_issuerBoolDenotes whether an issuer is debit or credit.

list_emi_tenure

Parameter NameTypeDescription
offer_schemeObjectIt contains information about offer applicable on each product.
tenure_idIntTenure Id specified at pine labs end.
tenure_in_monthStringTenure name specified at pine labs end.
monthly_installmentLongEmi amount in paise.
bank_interest_rateLongInterest rate for which bank emi is calculated. Its value is percentage multiplied by 10000.
interest_pay_to_bankLongInterest pay to bank in paise.
total_offerred_discount_cashback_amountLongTotal sum of discount applicable on cart. It is in paise.
loan_amountLongAmount in paise on which loan will be booked.
auth_amountLongBank authorization amount in paise.

offer_scheme

Parameter NameTypeDescription
product_detailsArray of objectsIt contains information about product.
emi_schemeObjectIt contains information about bank EMI scheme.

product_details

Parameter NameTypeDescription
product_codeStringProduct code.
product_amountLongProduct amount in paise.
subvention_cashback_discountLongSubvention discount cashback amount in paise. Only applicable when subvention is present.
product_discountLongProduct discount amount in paise. Only applicable if product discount is present.
subvention_cashback_discount_percentageLongSubvention discount cashback percentage. Its value is percentage multiplied by 10000.
product_discount_percentageLongProduct discount cashback percentage. Its value is percentage multiplied by 10000.
subvention_typeIntIt tells offer type. 1-No cost EMI 2-Low cost EMI 3-Standard EMI.
additional_cashbackStringAdditional cashback text to be set to display content of the cashback given.
bank_interest_rateLongAmount in paise.
bank_interest_rate_percentageLongPercentage multiplied by 10000.
schemesArray of objectsIt contains list of program applicable on product.

emi_scheme

Parameter NameTypeDescription
scheme_idLongIt tells scheme id applicable on product.
program_typeIntIt tells scheme of which type. 105-Bank EMI 106-Brand EMI 108-Product Discount 112-Subvention discount.
is_scheme_validBoolIs scheme is valid.

schemes

Parameter NameTypeDescription
scheme_idLongIt tells scheme id applicable on product.
program_typeIntIt tells scheme of which type. 105-Bank EMI 106-Brand EMI 108-Product Discount 112-Subvention discount.
is_scheme_validBoolIs scheme is valid.

Sample Request:

CARD REQUEST / CARDLESS REQUEST PAYLOAD REMAINS SAME ONLY PRODUCT CODE DIFFER:

{
"merchant_data": {
"merchant_id": 3473,
"merchant_access_code": "57e39383-b053-4db9-a708-26d8971886e7"
},
"payment_data": {
"amount_in_paisa": 1100000
},
"product_details": [
{
"product_code": "SM-G975FCWG",
"product_amount": 550000
},
{
"product_code": "40",
"product_amount": 550000
}
]
}

Sample Response:

CARD:

{
"issuer": [
{
"list_emi_tenure": [
{
"offer_scheme": {
"product_details": [
{
"schemes": [
{
"scheme_id": 1682,
"program_type": 112,
"is_scheme_valid": true
}
],
"product_code": "SM-G975FCWG",
"product_amount": 550000,
"subvention_cashback_discount": 11705,
"product_discount": 0,
"subvention_cashback_discount_percentage": 21500,
"product_discount_percentage": 0,
"subvention_type": 1
},
{
"schemes": [],
"product_code": "40",
"product_amount": 550000,
"subvention_cashback_discount": 0,
"product_discount": 0,
"subvention_cashback_discount_percentage": 0,
"product_discount_percentage": 0
}
],
"emi_scheme": {
"scheme_id": 1683,
"program_type": 105,
"is_scheme_valid": true
}
},
"tenure_id": "3",
"tenure_in_month": "3",
"monthly_installment": 370652,
"bank_interest_rate": 130000,
"interest_pay_to_bank": 23661,
"total_offerred_discount_cashback_amount": 11705,
"loan_amount": 1088295,
"auth_amount": 1088295
},
{
"offer_scheme": {
"product_details": [
{
"schemes": [
{
"scheme_id": 1682,
"program_type": 112,
"is_scheme_valid": true
}
],
"product_code": "SM-G975FCWG",
"product_amount": 550000,
"subvention_cashback_discount": 20266,
"product_discount": 0,
"subvention_cashback_discount_percentage": 37000,
"product_discount_percentage": 0,
"subvention_type": 1
},
{
"schemes": [],
"product_code": "40",
"product_amount": 550000,
"subvention_cashback_discount": 0,
"product_discount": 0,
"subvention_cashback_discount_percentage": 0,
"product_discount_percentage": 0
}
],
"emi_scheme": {
"scheme_id": 1683,
"program_type": 105,
"is_scheme_valid": true
}
},
"tenure_id": "6",
"tenure_in_month": "6",
"monthly_installment": 186840,
"bank_interest_rate": 130000,
"interest_pay_to_bank": 41306,
"total_offerred_discount_cashback_amount": 20266,
"loan_amount": 1079734,
"auth_amount": 1079734
}
],
"issuer_name": "HDFC",
"is_debit_emi_issuer": false
}
],
"response_code": 1,
"response_message": "SUCCESS"
}

CARDLESS:

{
"issuer": [
{
"list_emi_tenure": [
{
"offer_scheme": {
"product_details": [
{
"schemes": [],
"product_code": "MQ9P3HN/A",
"product_amount": 200000,
"subvention_cashback_discount": 0,
"product_discount": 0,
"subvention_cashback_discount_percentage": 0,
"product_discount_percentage": 0,
"subvention_type": 3,
"bank_interest_rate_percentage": 160000,
"bank_interest_rate": 17752
}
],
"emi_scheme": {
"scheme_id": 230563,
"program_type": 105,
"is_scheme_valid": true
}
},
"tenure_id": "12",
"tenure_in_month": "12",
"monthly_installment": 18146,
"bank_interest_rate": 160000,
"interest_pay_to_bank": 17752,
"total_offerred_discount_cashback_amount": 0,
"loan_amount": 200000,
"auth_amount": 200000
},
{
"offer_scheme": {
"product_details": [
{
"schemes": [],
"product_code": "MQ9P3HN/A",
"product_amount": 200000,
"subvention_cashback_discount": 0,
"product_discount": 0,
"subvention_cashback_discount_percentage": 0,
"product_discount_percentage": 0,
"subvention_type": 3,
"bank_interest_rate_percentage": 160000,
"bank_interest_rate": 26278
}
],
"emi_scheme": {
"scheme_id": 230563,
"program_type": 105,
"is_scheme_valid": true
}
},
"tenure_id": "18",
"tenure_in_month": "18",
"monthly_installment": 12571,
"bank_interest_rate": 160000,
"interest_pay_to_bank": 26278,
"total_offerred_discount_cashback_amount": 0,
"loan_amount": 200000,
"auth_amount": 200000
}
],
"issuer_name": "HDFCCARDLESS",
"is_debit_emi_issuer": true
}
],
"response_code": 1,
"response_message": "SUCCESS"
}

Single Cart Request:

CARD:

{
"merchant_data": {
"merchant_access_code": "dsfff33-5e6e-411a-99fe-dsdsjsfff",
"merchant_id": "10838"
},
"payment_data": {
"amount_in_paisa": 9000000
},
"product_details": [
{
"product_code": "SM-G988BZAP",
"product_amount": 9000000
}
]
}

CARDLESS:

{
"merchant_data": {
"merchant_id": 279082,
"merchant_access_code": "cfd05c0c-39f1-4232-bd6f-6d3a8608e1be"
},
"payment_data": {
"amount_in_paisa": 10000000
},
"product_details": [
{
"product_code": "MQ9P3HN/A",
"product_amount": 10000000
}
]
}

Single Cart Response:

CARD:

{
"issuer": [
{
"list_emi_tenure": [
{
"offer_scheme": {
"product_details": [
{
"schemes": [
{
"scheme_id": 374161,
"program_type": 106,
"is_scheme_valid": true
}
],
"product_code": "TestProduct2",
"product_amount": 6000000,
"subvention_cashback_discount": 0,
"product_discount": 0,
"subvention_cashback_discount_percentage": 0,
"product_discount_percentage": 0,
"subvention_type": 3,
"bank_interest_rate_percentage": 141300,
"bank_interest_rate": 599736
}
],
"emi_scheme": null
},
"tenure_id": "24",
"tenure_in_month": "24",
"monthly_installment": 187489,
"bank_interest_rate": 141300,
"interest_pay_to_bank": 599736,
"total_offerred_discount_cashback_amount": 0,
"loan_amount": 6000000,
"auth_amount": 6000000
}
],
"issuer_name": "ICICI",
"is_debit_emi_issuer": false
}
],
"response_code": 1,
"response_message": "SUCCESS"
}

CARDLESS:

{
"issuer": [
{
"list_emi_tenure": [
{
"offer_scheme": {
"product_details": [
{
"schemes": [
{
"scheme_id": 230456,
"program_type": 106,
"is_scheme_valid": true
}
],
"product_code": "MQ9P3HN/A",
"product_amount": 10000000,
"subvention_cashback_discount": 865000,
"product_discount": 0,
"subvention_cashback_discount_percentage": 86500,
"product_discount_percentage": 0,
"subvention_type": 1,
"bank_interest_rate_percentage": 160000,
"bank_interest_rate": 810888
}
],
"emi_scheme": null
},
"tenure_id": "12",
"tenure_in_month": "12",
"monthly_installment": 828824,
"bank_interest_rate": 160000,
"interest_pay_to_bank": 810888,
"total_offerred_discount_cashback_amount": 865000,
"loan_amount": 9135000,
"auth_amount": 9135000
},
{
"offer_scheme": {
"product_details": [
{
"schemes": [
{
"scheme_id": 230456,
"program_type": 106,
"is_scheme_valid": true
}
],
"product_code": "MQ9P3HN/A",
"product_amount": 10000000,
"subvention_cashback_discount": 1065000,
"product_discount": 0,
"subvention_cashback_discount_percentage": 106500,
"product_discount_percentage": 0,
"subvention_type": 2,
"bank_interest_rate_percentage": 160000,
"bank_interest_rate": 1174160
}
],
"emi_scheme": null
},
"tenure_id": "18",
"tenure_in_month": "18",
"monthly_installment": 561620,
"bank_interest_rate": 60000,
"interest_pay_to_bank": 1174160,
"total_offerred_discount_cashback_amount": 1065000,
"loan_amount": 8935000,
"auth_amount": 8935000
},
{
"offer_scheme": {
"product_details": [
{
"schemes": [
{
"scheme_id": 230456,
"program_type": 106,
"is_scheme_valid": true
}
],
"product_code": "MQ9P3HN/A",
"product_amount": 10000000,
"subvention_cashback_discount": 1165000,
"product_discount": 0,
"subvention_cashback_discount_percentage": 116500,
"product_discount_percentage": 0,
"subvention_type": 2,
"bank_interest_rate_percentage": 160000,
"bank_interest_rate": 1547088
}
],
"emi_scheme": null
},
"tenure_id": "24",
"tenure_in_month": "24",
"monthly_installment": 432587,
"bank_interest_rate": 160000,
"interest_pay_to_bank": 1547088,
"total_offerred_discount_cashback_amount": 1165000,
"loan_amount": 8835000,
"auth_amount": 8835000
}
],
"issuer_name": "HDFCCARDLESS",
"is_debit_emi_issuer": true
}
],
"response_code": 1,
"response_message": "SUCCESS"
}

Note:

1. Subvention Types:

a. NO COST EMI - When Subvention discount/cashback given to customer is equal to interest paid by customer.

b. LOW COST EMI - When subvention discount/cashback is given to customer is less than interest paid by customer.

c. STANDARD EMI - When there is no subvention discount/cashback given to customer.

2.EMI Model:

a. Single Cart Model : In this EMI is calculated on one product. This model supports the pre cashback, post cashback and instant discount subvention.

b. Multi Cart Model : In this EMI is calculated on multiple products. This model supports the instant discount subvention only.